﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;

namespace WcfMail.Interface
{
    /// <summary>
    /// 命令对象接口
    /// </summary>
    public  interface ICommand
    {
        /// <summary>
        /// 获取或者设置关联此命令对象的消息
        /// </summary>
        ISysMsg Message { get; set; }
        /// <summary>
        /// 执行命令
        /// </summary>
        /// <returns>执行结果</returns>
        int Execute();
    }
}
